package privilege;

import entity.Luggage;
import utils.Utils;

import java.util.List;

/**
 * @author lishunlin110
 * @version 1.0
 * @description: 白金卡特权
 * @date 2021/9/16 16:11
 */
public class PlatinumCard extends Garnish{

    public PlatinumCard() {
        this.luggageList = null;
        this.privilege = null;
        this.freeWeight = 30;
        this.dec = "白金卡";
    }

    public PlatinumCard(Privilege privilege) {
        super(30, "白金卡", null, privilege);
    }

    @Override
    public List<Luggage> removeFreeLuggage() {
        this.luggageList = Utils.removeLuggage(this.freeWeight,privilege.removeFreeLuggage(),1);
        return this.luggageList;
    }
}
